# OpenSBI充当操作系统的bootloader
# qemu -kernel loads the kernel at 0x80000000
# and causes each hart (i.e. CPU) to jump there.
# kernel.ld causes the following code to
# be placed at 0x80000000.
# 0X800000000之前放的是kernel bios
.section .text
.global _entry
_entry:
    csrr a0, mhartid
    li a1, 0
    bne a0, a1, spin

    la sp, stack0
    li a0, 4096
    add sp, sp, a0

    call start

spin:
    j spin

